OpenChannelModerationViewModel

open class OpenChannelModerationViewModel : BaseViewModel

ViewModel preparing and managing data related with the push setting of a channel since 3.1.0

Constructors

Link copied to clipboard
open fun OpenChannelModerationViewModel(@NonNull channelUrl: String)
Constructor

Functions

Link copied to clipboard
open fun authenticate(@NonNull handler: AuthenticateHandler)
Tries to connect Sendbird Server and retrieve a channel instance.
Link copied to clipboard
open fun getChannelDeleted(): LiveData<String>
Returns LiveData that can be observed if the channel has been deleted.
Link copied to clipboard
open fun getCurrentUserBanned(): LiveData<Boolean>
Returns LiveData that can be observed whether the current user is banned.
Link copied to clipboard
open fun getCurrentUserRegisteredOperator(): LiveData<Boolean>
Returns LiveData that can be observed if the current user is operator or not.
Link copied to clipboard
protected open fun onCleared()

Properties

Link copied to clipboard
open val channel: OpenChannel
Link copied to clipboard
val channelUrl: String